import { AppRegistry } from 'react-native';
import App from './rn/pages/App';
import IOSPlatformApi from './rn/pages/IOSPlatformApi'
import dbDemoPage from "./rn/pages/dbDemoPage";
import BaiduPage from "./rn/pages/BaiduPage";
import ZxingPage from "./rn/pages/ZxingPage";
import FlatListPage from "./rn/pages/FlatListPage";
import ScrollPage from "./rn/pages/ScrollPage";
import RefreshPage from "./rn/pages/RefreshPage";
// import ListViewPage from "./rn/pages/ListViewPage";
import RecyclerViewPage from "./rn/pages/RecyclerViewPage";

import RouteInterceptor from "./rn/api/platform/RouteInterceptor";
require('BatchedBridge').registerCallableModule('RouteInterceptor',new RouteInterceptor(
    (promise) => {
        return promise.then((data) => {
            return data;
        });
    },
    (result) => {
        console.log(result);
    }
));

AppRegistry.registerComponent('appPage', () => App);
AppRegistry.registerComponent('baiduPage', () => BaiduPage);
AppRegistry.registerComponent('dbDemoPage', () => dbDemoPage);
AppRegistry.registerComponent('IOSApi', () => IOSPlatformApi);
AppRegistry.registerComponent('Zxing', () => ZxingPage);
AppRegistry.registerComponent('flatListPage', () => FlatListPage);
AppRegistry.registerComponent('scrollPage', () => ScrollPage);
// AppRegistry.registerComponent('listViewPage', () => ListViewPage);
AppRegistry.registerComponent('recyclerViewPage', () => RecyclerViewPage);
AppRegistry.registerComponent('refreshPage', () => RefreshPage);


